﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Taobao.Top.Api.Domain
{
    [Serializable]
    public class FenxiaoProduct:BaseObject
    {
        #region Ctor

        public FenxiaoProduct()
            : base()
        { 
        }

        #endregion

        #region Properties

        [XmlElement("pid")]
        public int PID
        {
            get;
            set;
        }

        [XmlElement("name")]
        public string Name
        {
            get;
            set;
        }

        [XmlElement("productcat_id")]
        public int ProductCatID
        {
            get;
            set;
        }

        [XmlElement("standard_price")]
        public float StandardPrice
        {
            get;
            set;
        }

        [XmlElement("cost_price")]
        public float CostPrice
        {
            get;
            set;
        }

        [XmlElement("retail_price_low")]
        public float RetailPriceLow
        {
            get;
            set;
        }

        [XmlElement("retail_price_high")]
        public float RetailPriceHigh
        {
            get;
            set;
        }

        [XmlElement("outer_id")]
        public int OuterID
        {
            get;
            set;
        }

        [XmlElement("quantity")]
        public int Quantity
        {
            get;
            set;
        }

        [XmlElement("alarm_number")]
        public int AlertNumber
        {
            get;
            set;
        }

        [XmlElement("pictures")]
        public string Pictures
        {
            get;
            set;
        }

        [XmlElement("desc_path")]
        public string DescPath
        {
            get;
            set;
        }

        [XmlElement("prov")]
        public string Province
        {
            get;
            set;
        }

        [XmlElement("city")]
        public string City
        {
            get;
            set;
        }

        [XmlElement("postage_type")]
        public string PostageType
        {
            get;
            set;
        }

        [XmlElement("postage_id")]
        public int PostageID
        {
            get;
            set;
        }

        [XmlElement("postage_ordinary")]
        public float PostageOrdinary
        {
            get;
            set;
        }

        [XmlElement("postage_fast")]
        public float PostageFast
        {
            get;
            set;
        }

        [XmlElement("postage_ems")]
        public float PostageEMS
        {
            get;
            set;
        }

        [XmlElement("have_invoice")]
        public bool HaveInvoice
        {
            get;
            set;
        }

        [XmlElement("have_guarantee")]
        public bool HaveGuanrantee
        {
            get;
            set;
        }

        [XmlElement("status")]
        public string Status
        {
            get;
            set;
        }

        [XmlElement("items_count")]
        public int ItemsCount
        {
            get;
            set;
        }

        [XmlElement("orders_count")]
        public int OrdersCount
        {
            get;
            set;
        }

        [XmlElement("created")]
        public string Created
        {
            get;
            set;
        }

        [XmlElement("modified")]
        public string Modified
        {
            get;
            set;
        }

        [XmlArray("skus")]
        [XmlArrayItem("fenxiao_sku")]
        public List<FenxiaoSku> Skus
        {
            get;
            set;
        }

        #endregion

    }
}
